
import 'package:flame/game.dart';
import 'package:flutter/widgets.dart';

import 'ember_quest.dart';
import 'overlays/game_over.dart';
import 'overlays/main_menu.dart';

class EmberQuestGameMain extends StatelessWidget {
  const EmberQuestGameMain({super.key});

  @override
  Widget build(BuildContext context) {
    return GameWidget<EmberQuestGame>.controlled(gameFactory: EmberQuestGame.new, overlayBuilderMap: {
      'MainMenu': (_, game) => MainMenu(game: game),
      'GameOver': (_, game) => GameOver(game: game),
    },
      initialActiveOverlays: const ['MainMenu'],);
  }
}
